Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 218
Dependencies 28
Dependents 2
Total lines 1,733
Lines of code 1,148
Logical lines of code 511
Comment lines 302
Methods 67
Properties 21

Methods 67

Method Rating Maintainability Complexity Lines of code
tamaraCheckoutSession()
C
33 22 95
initFormFields()
B
25
9 221
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
43 12 46
captureWcOrder()
A
42 8 53
validateRequiredFields()
A
56 10 15
populateTamaraAddress()
A
53 9 20
getCountryPaymentTypes()
A
47 8 35
populateTamaraOrderItems()
S
48 5 33
tamaraCapturePayment()
S
57 6 15
populateTamaraRefundOrderItems()
S
48 5 30
verifyApiParams()
S
52 5 24
renderTamaraCountryPaymentTypesHtml()
S
48 4 33
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
populateTamaraOrder()
S
50 3 25
deleteTamaraWebhook()
S
56 3 19
isCartTotalValid()
S
70 4 5
hideTamaraGatewayOnCheckout()
S
62 4 10
tamaraOrderReceivedText()
S
62 3 11
onSaveSettings()
S
53 2 24
getTamaraSuccessUrl()
S
58 2 19
getTamaraCancelUrl()
S
58 2 19
getTamaraFailureUrl()
S
58 2 19
initBaseAttributes()
S
55 2 19
renderCheckoutServiceOptions()
S
56 2 17
createTamaraCheckoutSession()
S
58 2 16
getWebhookId()
S
69 3 7
setTamaraIconForPaymentGateway()
S
64 3 9
getPaymentTypes()
S
70 3 5
initTamaraClient()
S
61 2 12
getTamaraWebhookUrl()
S
63 2 12
getTamaraIpnUrl()
S
63 2 12
initSettingAttributes()
S
55 1 18
getErrorMap()
S
56 1 18
populateTamaraMerchantUrl()
S
57 1 18
populateInstalmentsMaxLimit()
S
71 2 5
processRewriteRules()
S
69 2 7
isIframeCheckoutEnabled()
S
78 2 3
populateInstalmentsMinLimit()
S
71 2 5
getDefaultBillingCountryCode()
S
78 2 3
getStoreBaseCountryCode()
S
78 2 3
populateMaxLimit()
S
71 2 5
populateMinLimit()
S
71 2 5
isBeautifyMerchantUrlsEnabled()
S
78 2 3
populateTamaraConsumer()
S
60 1 13
buildTamaraClient()
S
69 1 6
getCurrencyToCountryMapping()
S
69 1 7
initTamaraStatus()
S
63 1 9
buildCountryPaymentTypesCacheKey()
S
71 1 6
__construct()
S
78 1 4
updateThisSettingsToOptions()
S
66 1 10
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
raiseAdminError()
S
73 1 6
populateTamaraBillingAddress()
S
76 1 4
process_payment()
S
80 1 3
processAdminOptions()
S
81 1 3
initSettings()
S
81 1 3
isLiveMode()
S
79 1 3
isSandboxMode()
S
79 1 3
isWebhookEnabled()
S
80 1 3
getInstalmentsMaxLimit()
S
79 1 3
getInstalmentsMinLimit()
S
79 1 3
getMaxLimit()
S
79 1 3
getMinLimit()
S
79 1 3
init()
S
62 1 10
getShippingInfo()
S
69 1 7